package com.zmx.b2c.order.entity;

import com.zmx.common.common.entitys.BaseEntity;
import lombok.Data;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author zhaomxr
 * null
 */
@Data
@Entity
@Table(name = "b2c_order_item")
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper=true)
@Inheritance(strategy = InheritanceType.JOINED)
public class B2COrderItem extends BaseEntity {

	/**
	 * null
	 */
	@Column(name = "order_id")
	private Long orderId;

	/**
	 * 活动id
	 */
	@Column(name = "active_id")
	private Long activeId;

	/**
	 * null
	 */
	@Column(name = "product_id")
	private Long productId;

	/**
	 * null
	 */
	@Column(name = "price")
	private Double price;

	/**
	 * null
	 */
	@Column(name = "name")
	private String name;

	/**
	 * null
	 */
	@Column(name = "quantity")
	private Integer quantity;


}
